FzzyKeybindCompound

data class FzzyKeybindCompound(val keybinds: List<FzzyKeybind>) : FzzyKeybind

Author

fzzyhmstrs

Since

0.6.5

Constructors

Link copied to clipboard
constructor(keybinds: List<FzzyKeybind>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun clone(): FzzyKeybind

Copies the current keybind object where possible.

Link copied to clipboard

Creates a compound keybind (multiple-choice) with other. If this compound is already compound, the new addition will be added as a further choice.

Link copied to clipboard

Keybinds contained within this keybind.

Link copied to clipboard
open override fun isPressed(): Boolean

Determines if the key is relevant in this instant (is being pressed right now)

Link copied to clipboard
open override fun keybind(): MutableText

Creates a Text representation of the current keybind

Link copied to clipboard
open override fun needsAlt(): Boolean

Whether this needs the alt key to be pressed to be relevant. Should only return true if it definitely needs it, not "can have it"

Link copied to clipboard
open override fun needsCtrl(): Boolean

Whether this needs the control key to be pressed to be relevant. Should only return true if it definitely needs it, not "can have it"

Link copied to clipboard
open override fun needsShift(): Boolean

Whether this needs the shift key to be pressed to be relevant. Should only return true if it definitely needs it, not "can have it"

Link copied to clipboard
open override fun relevant(inputCode: Int, ctrl: Boolean, shift: Boolean, alt: Boolean): Boolean

Override from Relevant. Determines if an input is relevant for the handler or not.